package com.v2future.sjt.collegecheckingattendance.utils;

/**
 * Created by Administrator on 2016/1/2.
 */
public class Constants {

    /** 是否打印log */
    public static final boolean isShowLog = true;

    /** 服务器地址 */
//    public static final String ServerUrl = "http://172.18.5.5:8085/LawSchool/";//虎哥本机
//    public static final String ServerUrl = "http://121.42.185.124:8080/LawSchool/";//外网
  public static final String ServerUrl = "http://211.65.216.54/";//外网2


    /** get请求分割 ? */
    public static final String Q = "?";

    /** get请求参数分割 & */
    public static final String AND = "&";

    public static final String DOT = ".";

    public static final String ACTION = "action";

    public static final String DO = "do";

    /** 登录 */
    public static final String LOGIN = "mobileLogin";

    /** 修改密码DO */
    public static final String MODIFY_PWD = "modifyPassword";

    /** 活动数量 */
    public static final String EVENT_COUNT = "getSchoolActionCount";

    /** 发布活动
     * 请假接口 */
    public static final String PUBLISH_EVENT= "uploadAction";

    /**
     * 活动列表
     */
    public static final String EVENT_LIST = "getSchoolActionList";

    /**
     * 参加活动
     */
    public static final String JOIN_EVENT = "inviteFace";

    /**
     * 获取学生课程
     */
    public static final String USER_COURSE= "getUserCourse";

    /**
     * 获取老师课程
     */
    public static final String TEACHER_COURSE = "getTeacherCourses";

    /**
     * 获取班级
     */
    public static final String CLASS = "getClassByCourse";

    /**
     * 获取教师课程
     */
    public static final String TEACHE_COURSE = "getTeacherCourse";

    /**
     * 获取学生列表
     */
    public static final String STUDENT_LIST = "getStudentList";

    /**
     * 获取老师列表
     */
    public static final String TEACHER_LIST = "queryTeacherList";

    /**
     * 获取用户轨迹
     */
    public static final String USER_CONDITION = "getUserCondition";

    /**
     * 审批消息列表
     */
    public static final String MESSAGE_LIST = "getStudentDutyList";

    /**
     * 修改用户信息，包含头像
     */
    public static final String MODIFY_USER_INFO = "modifyUserByCode";

    /**
     * 获取用户信息
     */
    public static final String GET_USER_INFO = "getUserInfo";

    /**
     * 获取用户的请假列表
     */
    public static final String GET_USER_ACTION = "getUserAction";

    /**
     * 添加用户轨迹
     */
    public static final String ADD_USER_CONDITION = "addUserCondition";

    /**
     * 销假
     */
    public static final String CANCEL_LEAVE = "cancelAction";

    /**
     * 保存点名信息
     */
    public static final String SAVE_ABSENT = "appointStudent";

    /**
     * 审批请假
     */
    public static final String APPROVE_LEAVE = "approveLeave";

 /**
  * get term
  */
    public static final String GET_TERM = "getTerm";

    /**
     * 获取轨迹类型
     */
    public static final String GET_CONDITION_TYPE = "getConditionType";

    /**
     * 点赞
     */
    public static final String PRAISE = "praiseFace";

    /**
     * 参加
     */
    public static final String INVITE = "inviteFace";

    /**
     * 活动科目
     */
    public static final String EVENT_TYPE = "getActionSubject";

    /**
     * 获取政治面貌
     */
    public static final String GET_POLITICS = "getPoliticalType";

    /**
     * 获取级别
     */
    public static final String GET_RESEARCH_LEVEL = "researchSubjectLevel";

    /**
     * 获取类型
     */
    public static final String GET_RESEARCH_TYPE = "researchSubject";



    /** cathe keys */
    /** 用户信息 */
    public static final String CACHE_KEY_USER_INFO = "cache_user_info";
    /** term cache */
    public static final String CACHE_KEY_TERM = "cache_term";

    /** Preference keys
     */
    public static final String PREFERENCE_USERNAME = "preference_username";
    public static final String PREFERENCE_PWD = "preference_pwd";
    public static final String PREFERENCE_USER_TYPE = "preference_user_type";
    public static final String PREFERENCE_PUSH_ABLED = "preference_push_abled";//推送

    /**
     * 极光推送的tag
     */
    public static final String JPUSH_TAG_TEACHER = "tag_teacher";
    public static final String JPUSH_TAG_STUDENT = "tag_student";
    public static boolean isOpenForPush = false;//是否已经打开应用，推送使用

    /**
     * 请求超时时间
     */
    public static final int REQUEST_TIME = 10 * 1000 ;

    /**
     * 请求重试次数
     */
    public static final int REQUEST_RETRY_COUNT = 1 ;

    /**
     * 图片选择器返回编码
     */
    public static final int IMAGE_CODE = 100;
}
